<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>后台管理</title>

		<meta name="decorator" content="kindeditor"/>
		<script type="text/javascript">
			$(function(){
				$("#shezhi").addClass("active");
                $("#shezhi").find("ul li").eq(0).addClass("active");
			})
		</script>
	
	</head>

	<body>
		<div class="admin">

			<div class="panel">
				<div class="panel-head">
					<strong>修改管理员信息</strong>
				</div>
				<div class="panel-body">

					<form
						action="<%=request.getContextPath()%>/admin/admin!update.action"
						id="form" method="post" enctype="multipart/form-data">
						<div class="form-group">
							<div class="label">
								<label for="sitename">
									用户名
								</label>
							</div>
							<div class="field">
								<input value="${admin.name}" type="text" class="input"
									id="sitename" name="admin.name" size="50" />
							</div>
						</div>


						<div class="form-group">
							<div class="label">
								<label for="bianma">
									密码
								</label>
							</div>
							<div class="field">
								<input type="password" class="input" id="bianma"
									value="${admin.password }" name="admin.password" size="50" />
							</div>
						</div>
						<input type="hidden" name="admin.id" value="${admin.id}" />
						<input type="hidden" name="admin.num" value="${admin.num}" />
						<input type="hidden" name="admin.thistime"
							value="${admin.thistime}" />
						<input type="hidden" name="admin.lasttime"
							value="${admin.lasttime}" />

						<div class="form-group">
							<div class="label">
								<label for="logo">
									头像
								</label>
							</div>
							<div class="field">
								<a class="button input-file" href="javascript:void(0);">+
									浏览文件<input size="100" type="file" name="file" />
								</a>
							</div>
						</div>

						<div class="form-group">
							<div class="label">
								<label for="sitename">
									个性签名
								</label>
							</div>
							<div class="field">
								<textarea rows="5" class="input" name="admin.qianming">${admin.qianming }</textarea>
							</div>
						</div>
						<input type="hidden" name="post.classify" value="${post.classify}" />
						<button type="submit" class="button bg-blue">
							修改
						</button>
					</form>
				</div>
			</div>


		</div>


	</body>
</html>